// utils/eventBus.ts
import mitt from 'mitt';
import type { Emitter } from 'mitt';
import type { Setting } from "@/components/SettingPopup/SettingPopup.vue";

export type EventBusEvents = {
  getFileList: null
  pauseMusic: null
  pauseVoice: null
  changeSetting: Setting
};

const emitter: Emitter<EventBusEvents> = mitt<EventBusEvents>();

export default emitter;
